package com.hoshino.momochi.model.DTO;

import com.fasterxml.jackson.annotation.JsonProperty;

import java.util.List;

/**
 * 消息 信息
 */
public class MessageDTO {

    private Long id;// 消息id

    private Long send_id; // 发送者ID

    private Long pull_id; // 接收者ID

    private String message; // 消息内容

    @JsonProperty(access = JsonProperty.Access.WRITE_ONLY) // 禁止 序列化
    private List<Long> pull_list; // 可能是 1 对 多 消息

    public List<Long> getPull_list() {
        return pull_list;
    }

    public void setPull_list(List<Long> pull_list) {
        this.pull_list = pull_list;
    }

    public Long getSend_id() {
        return send_id;
    }

    public MessageDTO(Long send_id, Long pull_id, String message) {
        this.send_id = send_id;
        this.pull_id = pull_id;
        this.message = message;
    }

    public void setSend_id(Long send_id) {
        this.send_id = send_id;
    }

    public Long getPull_id() {
        return pull_id;
    }

    public void setPull_id(Long pull_id) {
        this.pull_id = pull_id;
    }

    public String getMessage() {
        return message;
    }

    public void setMessage(String message) {
        this.message = message;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }
}
